﻿<?xml version="1.0" encoding="utf-8"?>

<xs:schema id="SecurityMatrix" xmlns:xs="http://www.w3.org/2001/XMLSchema">
	<xs:element name="Matrix">
		<xs:complexType>
			<xs:choice minOccurs="1" maxOccurs="unbounded">
				<xs:element name="Row">
					<xs:complexType>
						<xs:choice minOccurs="1" maxOccurs="unbounded">
							<xs:element name="Assignment">
								<xs:complexType>
									<xs:attribute name="principal" type="xs:string" use="required" />
									<xs:attribute name="accesslevel" type="xs:string" use="required" />
								</xs:complexType>
							</xs:element>
						</xs:choice>
						<xs:attribute name="name" type="xs:string" use="required" />
						<xs:attribute name="inherit" type="xs:boolean" use="required" />
					</xs:complexType>
				</xs:element>
			</xs:choice>
			<xs:attribute name="name" type="xs:string" use="required" />
		</xs:complexType>
	</xs:element>
</xs:schema>